import React from 'react';
import Account from '@web-design/account';
import { login } from '@/api';
const App = ()=>{
const onSubmit =async (data:any)=>{
 await login(data)
}
return (<Account onSubmit={onSubmit}  backgroundUrl={''}>
    <Account.Panel>
        <Account.Input/>
        <Account.Password/>
        <Account.Submit>登录</Account.Submit>
    </Account.Panel>
</Account>)
}
export default App